﻿using Furion.Schedule;

public class HeatbeatJob : IJob
{
    private readonly ILogger<HeatbeatJob> _logger;

    public HeatbeatJob(ILogger<HeatbeatJob> logger)
    {
        _logger = logger;
    }

    public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
    {
        await Task.Run(() =>
        {
            //Console.WriteLine("证明一下还活着");
            _logger.LogInformation("证明一下还活着");
        });
    }
}